|
light6 2.2.0
|
Light 6 Click example. More...
Functions | |
| void | application_init (void) |
| void | application_task (void) |
| int | main (void) |
Light 6 Click example.
This example demonstrates the use of the Light 6 Click board, which measures ambient light and infrared (IR) intensity. The application initializes the device and continuously reads ALS and IR data, displaying the results via UART logging.
The demo application is composed of two sections:
Initializes the logger and configures the Light 6 Click board. It establishes I2C communication and applies the default configuration settings.
Continuously reads ambient light and infrared sensor data and logs the results in lux and raw IR values, respectively. The readings are updated every 200ms.
| void application_init | ( | void | ) |
< Logger config object.
< Click config object.
Logger initialization. Default baud rate: 115200 Default log level: LOG_LEVEL_DEBUG
| void application_task | ( | void | ) |
| int main | ( | void | ) |